The RISC-V specification is a very long technical document (hundreds of pages) that describes many "architectural parameters" — settings like how many memory-protection regions a chip supports, or how wide its registers are. Right now, people manually read through the spec and write these parameters into a structured file (YAML) by hand. This is slow and easy to get wrong. The goal of this project is to use AI (large language models) to read the spec text automatically and pull out these parameters correctly, so the manual work becomes much faster.
Discover gists
| #!/usr/bin/env zsh | |
| printf "PT09IENyb3NzT3ZlciBUcmlhbCBSZXNldCBTY3JpcHQgPT09DQpbSU5GT10gVGhpcyBzY3JpcHQgaXMgb25seSBtZWFudCBmb3IgZWR1Y2F0aW9uYWwgcHVycG9zZXMuDQpbV0FSTklOR10gSWYgeW91IGRpZG4ndCBnZXQgdGhpcyBzY3JpcHQgZnJvbSBueGZ4MjEncyBHaXRIdWIgR2lzdCwgaXQgbWF5IGhhdmUgYmVlbiB0YW1wZXJlZCB3aXRoLiBJZiB5b3UgZGlkIGdldCB0aGlzIG9mZiBueGZ4MjEncyBHaXRIdWIgR2lzdCwgeW91IGFyZSBzYWZlLCBjYXJyeSBvbi4gQmUgY2F1dGlvdXMgd2hlbiBydW5uaW5nIG9ubGluZSBjb2RlLCBhbmQgYWx3YXlzIGNoZWNrIGlmIGl0IGRvZXMgYW55dGhpbmcgdGhhdCB5b3UgZG9uJ3QgbGlrZS4=" | base64 -D | |
| echo "\n[LOG] Started at: $(date)" | |
| # Check if Homebrew exists, install if needed | |
| if ! command -v brew >/dev/null 2>&1; then | |
| echo "[INFO] Homebrew not found. Installing Homebrew..." | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
Using Zed IDE for Python? Feel free to use my settings.
Just keep a few things in mind:
- Font: I use Fira Code Nerd Font. Make sure it's installed on your system before applying.
- AI config: Update the AI model provider and model to match your own setup.
- Save behavior: I don't use auto-save — I save manually with Cmd+S. I also have on-save hooks (ruff, isort, black, ty) that may modify your file/buffer unexpectedly. Adjust these if that's not what you want.
Files:
Tip
See the blog post: https://mdinata.my.id/blogs/docker-on-postmarketos/
With postmarketOS and modified kernel (see https://blog.hypriot.com/post/verify-kernel-container-compatibility/), it's possible to natively run Docker on phone. Since postmarketOS runs Alpine Linux natively, there's no need to run VMs, chroot, or whatever it is. Just native. Ain't that cool?
| import Darwin | |
| import Foundation | |
| // known good: Swift 5 | |
| // runs on macOS, probably works on iOS (but haven't tried) | |
| /// Wraps `host_statistics64`, and provides info on virtual memory | |
| /// | |
| /// - Returns: a `vm_statistics64`, or nil if the kernel reported an error | |
| /// |
| Day | Title | link |
|---|---|---|
| 1 | Apple Source code | https://www.youtube.com/watch?v=WxOZgr0Ld9o |
| 2 | Mach-O Binaries | https://www.youtube.com/watch?v=G_bDl5hv8kY |
| 3 | PAC (Pointer Authentication Codes) | https://www.youtube.com/watch?v=9neXmcwtCF8 |
| 4 | dyld_shared_cache | https://www.youtube.com/watch?v=I1ZkONfyHG4 |
| 5 | Userspace Memory Layout | https://www.youtube.com/watch?v=MUr7qg7iqKE |
| 6 | SIP | https://www.youtube.com/watch?v=HeOVKe0xpW0 |
| 7 | Kernel Boot Arguments | https://www.youtube.com/watch?v=gjOKlBpJWoc |
| 8 | XNU Source Code Overview | https://www.youtube.c |
Logitech Options+ (and its predecessor Logitech Options) installs far more than a mouse/keyboard driver. For what should be a simple button remapping tool, it drops files across 6+ system directories, installs background daemons, phones home via crash reporting (Sentry), and even bundles an AI Prompt Builder — none of which you asked for.
Here's what's actually running on your Mac after a "simple" Logitech Options+ install: